package richbar.com.richbar.bean;

import com.common.base.BaseResult;

import java.util.List;

/**
 * Created by QiYang on 2018/12/6.
 */

public class CommentResult extends BaseResult{

    /**
     * code : 200
     * msg : 请求成功
     * data : {"rows":[{"id":1,"account":"FB40182025","head":null,"time":"2018-12-06 15:23:37","star":5,"content":"非常不错的商品","img":[{"id":1,"imgpath":"/upload/15435568071823.png"},{"id":2,"imgpath":"/upload/15435569698245.png"}]}],"total":1,"totalpage":1,"error":0}
     */

    private String msg;
    private DataEntity data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        /**
         * rows : [{"id":1,"account":"FB40182025","head":null,"time":"2018-12-06 15:23:37","star":5,"content":"非常不错的商品","img":[{"id":1,"imgpath":"/upload/15435568071823.png"},{"id":2,"imgpath":"/upload/15435569698245.png"}]}]
         * total : 1
         * totalpage : 1
         * error : 0
         */

        private int total;
        private int totalpage;
        private int error;
        private List<RowsEntity> rows;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getTotalpage() {
            return totalpage;
        }

        public void setTotalpage(int totalpage) {
            this.totalpage = totalpage;
        }

        public int getError() {
            return error;
        }

        public void setError(int error) {
            this.error = error;
        }

        public List<RowsEntity> getRows() {
            return rows;
        }

        public void setRows(List<RowsEntity> rows) {
            this.rows = rows;
        }

        public static class RowsEntity {
            /**
             * id : 1
             * account : FB40182025
             * head : null
             * time : 2018-12-06 15:23:37
             * star : 5
             * content : 非常不错的商品
             * img : [{"id":1,"imgpath":"/upload/15435568071823.png"},{"id":2,"imgpath":"/upload/15435569698245.png"}]
             */

            private int id;
            private String account;
            private Object head;
            private String time;
            private int star;
            private String content;
            private String nickname;
            private String attr;
            private List<ImgEntity> img;

            public String getAttr() {
                return attr;
            }

            public void setAttr(String attr) {
                this.attr = attr;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getAccount() {
                return account;
            }

            public void setAccount(String account) {
                this.account = account;
            }

            public Object getHead() {
                return head;
            }

            public void setHead(Object head) {
                this.head = head;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public int getStar() {
                return star;
            }

            public void setStar(int star) {
                this.star = star;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public List<ImgEntity> getImg() {
                return img;
            }

            public void setImg(List<ImgEntity> img) {
                this.img = img;
            }

            public static class ImgEntity {
                /**
                 * id : 1
                 * imgpath : /upload/15435568071823.png
                 */

                private int id;
                private String imgpath;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getImgpath() {
                    return imgpath;
                }

                public void setImgpath(String imgpath) {
                    this.imgpath = imgpath;
                }
            }
        }
    }
}
